package com.test.springcloudconfigclient;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@SpringCloudApplication
@RestController
public class SpringCloudConfigClientApplication {

	@Value("${acquireIncrement}")
	private String url;

	public static void main(String[] args) {
		SpringApplication.run(SpringCloudConfigClientApplication.class, args);
	}


	@RequestMapping(value = "/hi", method = RequestMethod.GET)
	public String hi(String name) {
		return "hi " + name + " " + url;
	}


}
